package cn.wolfcode.util;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class JsonResult {
    //大写 true false null,包装类型所以有null
    //小写 只有true false
    private boolean success =true;
    private String msg = "成功";

    private Object data;

    public JsonResult(boolean success,String msg){
        this.success = success;
        this.msg = msg;
    }

    public JsonResult(Object data){
        this.data = data;
    }
}
